package top.api.controller;

import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import top.api.common.ResUlt;
import top.api.domain.dto.SysUserInfoLoginDto;
import top.api.service.loginUserService;

@RestController
@AllArgsConstructor
public class LoginController {

    private final loginUserService loginuserService;

    @PostMapping("/login")
    public ResUlt<Object> login(@RequestBody @Validated SysUserInfoLoginDto sysUserInfoLoginDto){
        return loginuserService.login(sysUserInfoLoginDto);
    }

}
